<?php
function dump(...$logs){
    foreach ($logs as $log){
        echo print_r($log,true).PHP_EOL;
    }
}
$array1 = array(
    '贵州',
    '云南',
    '四川',
    '四川',
    '贵州',
    '贵州',
    '云南',
    '贵州',
    '贵州',
);
dump(array_count_values($array1));